<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>参数设置</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/state/css/bootstrap.min14ed.css" rel="stylesheet">
    <link href="/state/css/style.min.css" rel="stylesheet">
    <link href="/state/css/plugins/switchery/switchery.css" rel="stylesheet">
    <style type="text/css">
        .col-sm-1{width: auto};
    </style>

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <!-- <div class="ibox-title">
                    <h5><a href="#"><button class="btn btn-primary btn-sm">调控数目</button></a><small>&nbsp;&nbsp;调控数目</small></h5>

                    <div class="ibox-tools">

                    </div>
                </div> -->
                <div class="ibox-content">
                    <form method="post" id="form1" name="form1" class="form-horizontal" action="/adminchy/Index/configEdit">
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">平台在线人数</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="edit_online_num" name="edit_online_num" value="{$config.edit_online_num}">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">注册奖励</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="register_give" name="register_give" value="{$config.register_give}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">最低提现金额</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="low_money" name="low_money" value="{$config.low_money}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">提现手续费</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="withdraw_poundage" name="withdraw_poundage" value="{$config.withdraw_poundage}">
                            </div>
                            <label class="col-sm-1 control-label">%</label>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">充值金额</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="recharge_money" name="recharge_money" value="{$config.recharge_money}">
                            </div>
                            <label class="col-sm-3 control-label">每个金额之间用英文逗号分开</label>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">奖池数</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="jackpot" name="jackpot" value="{$config.jackpot}">
                            </div>
                        </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                    <a class="btn btn-white" href="javascript:history.go(-1)">返回</a>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/state/js/jquery.min.js"></script>
<script src="/state/js/jquery.form.js"></script>
<script src="/state/js/plugins/switchery/switchery.js"></script>
<script src="/state/js/plugins/layer/layer.min.js"></script>
<script src="/state/js/common.js"></script>
<script>
    $(function(){
        $('#form1').ajaxForm({
            //beforeSubmit: checkFun,
            success: complete,
            dataType: 'json'
        });
        /*function checkFun(){
            if($('#interest').val() == ''){
                layer.msg("利率设置不能为空", {icon: 5},function(index)
                {
                    return index;
                });
                // return false;
            }
        }*/
        function complete(data){
            if(data.status == 0){ 
                layer.msg(data.message,{icon:6,time:1000},function(){
                    location.reload();
                })
            }else{
                layer.msg(data.message,{icon:5,time:1000},function(){
                    location.reload();
                })
            }
            
        }

    })
</script>
</body>
</html>
